import request from "@/utils/request";
export const getColumns = () => {
    return request({
        url: "/api/columns",
    });
};
export const getColumn = cid => {
    return request({
        url: `/api/columns/${cid}`,
    });
};
export const getPosts = cid => {
    return request({
        url: `/api/columns/${cid}/posts`,
    });
};
export const uploadFile = formData => {
    return request({
        url: `/api/upload`,
        method: "POST",
        headers: {
            "Content-Type": "multipart/form-data",
        },
        data: formData,
    });
};
